<template>
  <view class="xnotice" >
    <view class="xnoticeMask"></view>
    <view class="qtWrongNotice" :style="'background:'+bgColor+';'" @click="hideDialog()">
      <view style="text-align: right;padding-right:40rpx;">
      </view>
      <slot></slot>
    </view>
  </view>
</template>
<script>
export default {
  name: "xToastAgree",
  data() {
    return {
      xDialogShow:false,
      bgColor:''
    }
  },
  watch: {
    DialogShow: {
      handler(newValue, oldValue) {
        var t = this;
        t.initDialog(t.DialogShow);
      }
    }
  },
  mounted: function () {
    var t = this;
    t.initDialog(t.DialogShow);
  },

  methods: {
    initDialog(DialogShow){
      var t = this;
      t.xDialogShow = DialogShow;
    },
    hideDialog(){
      var t =this;
      t.xDialogShow = false;
      t.$emit('hideDialog')
    }
  },
  props: ['DialogShow'],
};
</script>
<style>


</style>
